package ar.edu.uba.fi.jmit.aspecter.parser.configurations;

import java.util.HashMap;
import java.util.Map;

public class ConfigurationField extends ConfigurationParse {

	private String name;
	private String type;
	
	public ConfigurationField(String configurationName, String name, String type){
		super(configurationName);
		this.name = name;
		this.type = type;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Override
	public Map<String, String> getMapForPlugin() {
		String prefix = this.configurationName + ".field.";
		Map<String, String> map = new HashMap<String, String>();
		map.put(prefix + "name", this.name);
		map.put(prefix + "type", this.type);
		return map;
	}
}
